package com.lemo.autowired;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

public class Zoo {

    @Autowired(required = false)
    private Tiger tiger;

    @Autowired
    private Monkey monkey;

//    public Tiger getTiger() {
//        return tiger;
//    }
//
//    public void setTiger(Tiger tiger) {
//        this.tiger = tiger;
//    }
//
//    public Monkey getMonkey() {
//        return monkey;
//    }
//
//    public void setMonkey(Monkey monkey) {
//        this.monkey = monkey;
//    }


    @Override
    public String toString() {
        return "Zoo{" +
                "tiger=" + tiger +
                ", monkey=" + monkey +
                '}';
    }
}
